using System;
using System.Collections.Generic;
using System.Text;

namespace SharpMud.MudLib.Common.Entities.Players.Persistance
{
    public interface IPlayerCharacterSaveResults
    {
        IPlayerCharacterSaveMessage[] Messages { get;}
    }
    public interface IPlayerCharacterSaveMessage
    {
        Guid PlayerInstanceID { get;}
        string Message { get;}
        bool IsCritical { get;}
    }
    public class PlayerSaveMessage : IPlayerCharacterSaveMessage
    {
        private Guid _PlayerInstanceID;
        private string _Message;
        private bool _IsCritical;

        private PlayerSaveMessage() { }
        public PlayerSaveMessage(string message, Guid playerInstanceID, bool isCritical)
        {
            _Message = message;
            _PlayerInstanceID = playerInstanceID;
            _IsCritical = isCritical;
        }

        #region IPlayerCharacterSaveMessage Members

        public Guid PlayerInstanceID
        {
            get { return _PlayerInstanceID; }
        }

        public string Message
        {
            get { return _Message; }
        }

        public bool IsCritical
        {
            get { return _IsCritical; }
        }

        #endregion

    }
}
